﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="notify_view_list.aspx.cs" Inherits="Ccit.OA.Notify.notify_view_list"  culture="auto" meta:resourcekey="PageResource1" uiculture="auto"%>
<%@ Register assembly="DevExpress.Web.ASPxGridView.v8.1" namespace="DevExpress.Web.ASPxGridView" tagprefix="dxwgv" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v8.1" namespace="DevExpress.Web.ASPxEditors" tagprefix="dxe" %>
<%@ Register TagPrefix="ccit" Namespace="Ccit.ServerControls" Assembly="Ccit.ServerControls.ActionForm" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>通知管理-通知浏览</title>
    <script language="javascript" type="text/javascript" src="../script/jquery.js"></script>
    <script language="javascript" type="text/javascript" src="../script/StringClass_Ext.js"></script>
    <script language="javascript" type="text/javascript" src="../script/jsonlib.js"></script>
    <script language="javascript" src="../script/jwindow.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jcontrol.js" type="text/javascript"></script>
    <script language="javascript" src="../script/jbase64.js" type="text/javascript"></script>
    <script type="text/javascript"> 
        function DoOpenQuery(vType)
        {
            var vPageParam = "Type="+vType;
            var encodeParam = base64encode(vPageParam);
            var strUrl = "notify_manage_query.aspx?"+encodeParam;
            window.location.href = strUrl;
        }
        function Operate(vNotiFyId,vUserId,vreceipt)
        {
            var vPageParam = "NotiFyId="+vNotiFyId+"&UserId="+vUserId+"&Receipt="+vreceipt;
            var encodeParam = base64encode(vPageParam);
            var strUrl = "notify_view_reply.aspx?"+encodeParam; 
            
            OpenWindow(strUrl,"","800","450");
        }
       </script>
</head>
<body>
    <ccit:ActionForm id="form1" runat="server">
    <table class="tbToolbar" cellpadding="0" cellspacing="0" width="98%" align="center" id="TablePrint">
                <tr>
                    <td align="left">
                        <div class="tbSeparator"></div>
                    </td>
                    <td width="100%" class="titlebar">  
                        通知管理-通知浏览
                    </td>                
                    <td align="right">
                        <nobr> 
                            <asp:DropDownList ID="ddlSearch" CssClass="input" runat="server" Width="120"></asp:DropDownList>
                            &nbsp;
                           <asp:LinkButton ID="lnbQuery" CssClass="linktext" runat="server" onclick="lnbQuery_Click" 
                            >
						        <img src="../images/toolbar/search.gif" border="0">查询
					        </asp:LinkButton>
					        <a  id="lndDelete" Runat="server" class="linktext"  
                            href="javascript:DoOpenQuery('2')">
						        <img src="../images/toolbar/preview.gif" border="0">条件设置
					        </a>  
                         </nobr>
                    </td> 
                </tr>
      </table>
       <table cellpadding="0" cellspacing="0" width="98%" align="center">
                                <tr>
                                    <td colspan="3" width="100%">
                                      <dxwgv:ASPxGridView ID="dgMain" runat="server"
                                AutoGenerateColumns="False" Width="100%" KeyFieldName="id" onhtmlrowcreated="dgMain_HtmlRowCreated"   
                                             >
                                            <SettingsPager AlwaysShowPager="True" PageSize="15">
                                                <FirstPageButton Visible="True">
                                                </FirstPageButton>
                                                <LastPageButton Visible="True">
                                                </LastPageButton>
                                            </SettingsPager>
                                             <Styles>
                                                <Row CssClass=""></Row>
                                                <AlternatingRow  CssClass="" Enabled="true"/>
                                                <SelectedRow  CssClass=""></SelectedRow>                
                                            </Styles>  
                                            <Columns>
                                                  
                                                <dxwgv:GridViewDataTextColumn Caption="阅读状态" VisibleIndex="1" width="8%" FieldName="title">
                                                 <HeaderStyle HorizontalAlign="Center" />
                                                 <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                <dxwgv:GridViewDataTextColumn Caption="重要程度" VisibleIndex="2" width="4%" FieldName="importance">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="通知标题" VisibleIndex="3" width="30%" FieldName="title">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="left"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="通知类型" VisibleIndex="4" width="6%" FieldName="type">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn> 
                                                  <dxwgv:GridViewDataTextColumn Caption="发布部门" VisibleIndex="5" width="8%" FieldName="deptname">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>
                                                 <dxwgv:GridViewDataTextColumn Caption="发布时间" VisibleIndex="6" width="10%" FieldName="releasetime">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn> 
                                                <dxwgv:GridViewDataTextColumn Caption="最后阅读时间" VisibleIndex="7" width="10%" FieldName="endtime">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>    
                                                <dxwgv:GridViewDataTextColumn Caption="" VisibleIndex="8" width="12%" FieldName="receipt" Visible="false">
                                                  <HeaderStyle HorizontalAlign="Center" />
                                                  <CellStyle HorizontalAlign="Center"></CellStyle>
                                                </dxwgv:GridViewDataTextColumn>    
                                                                                            
                                            </Columns>
                                             
                                        </dxwgv:ASPxGridView>
                                    </td>
                                </tr>
                            </table>
    </ccit:ActionForm>
</body>
</html>
